

clear all
set more off
cap log close

***************************************************************************************************
* Program: master.do
* Purpose: Define globals for directories and run programs
***************************************************************************************************

* Set directories 
* Replace "yourdirectory" the local directory in which you've downloaded the Replication Archive

global prison_dir  "yourdirectory"
global raw_data "${prison_dir}/raw_data"
global intermediate_data "${prison_dir}/intermediate_data"
global code "${prison_dir}/code"
global analysis_data "${prison_dir}/analysis_data"
global output "${prison_dir}/output"

cd "${prison_dir}"

***************************************************************************************************
* Run programs

run "${code}/prepare_analysis_data.do"
run "${code}/figure1.do"
run "${code}/figure2_data.do"
run "${code}/figure3.do"
run "${code}/figure4.do"
run "${code}/figure5_figureS4.do"
run "${code}/figure5_figureS2.do"
run "${code}/figure5_figureS3.do"
run "${code}/produce_appendix_tables.do"

